package com.gcosc.hly.codejava.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gcosc.hly.codejava.VO.AnswerItemDetailVO;
import com.gcosc.hly.codejava.VO.AnswerItemVO;
import com.gcosc.hly.codejava.VO.PageResult;
import com.gcosc.hly.codejava.entity.AnswerItem;
import com.gcosc.hly.codejava.params.QueryParams;

import java.util.ArrayList;
import java.util.List;

public interface AnswerItemService extends IService<AnswerItem> {

    PageResult<AnswerItemVO> queryParams(QueryParams params);

    boolean codeTest(AnswerItem answerItem);

    void saveAnswerItem(AnswerItem answerItem);

    int countFraction(int id);

    List<AnswerItemDetailVO> getDetailList(int aid);

    AnswerItemDetailVO getDetail(AnswerItem answerItem);

    List<AnswerItemDetailVO> getDetailByTopicIdsList(ArrayList<Integer> ids);
}
